package com.start.manager.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.start.manager.dao.RoleDao;
import com.start.manager.domain.entity.Role;
import com.start.manager.service.IRoleService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author Lijian
 * @since 2020-01-07
 */
@Service
public class RoleServiceImpl extends ServiceImpl<RoleDao, Role> implements IRoleService {

    @Override
    public List<Role> findRoles() {
        QueryWrapper<Role> queryWrapper = new QueryWrapper<>();
        List<Role> roles = this.baseMapper.selectList(queryWrapper);
        return roles;
    }
}
